<?php
namespace OnePiece;
include 'inc/header.php';

class MyClass
{
    function __construct()
    {
        clog("calling construct," . __METHOD__ . "\n");
    }
}

function myFunction()
{
    clog("calling function, " . __FUNCTION__ . "\n");
}

const MY_CODE = "TIDY";

$a = 'OnePiece\MyClass';
$obj = new $a(); // OnePiece\MyClass::__construct

$b = 'OnePiece\myFunction';
$b(); // OnePiece\myFunction

clog(constant('OnePiece\MY_CODE')); // TIDY

include 'inc/footer.php';